import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import home from '@/components/home'
import Login from '@/components/login/Login'
import register from '@/components/register'
import weibo_list from '@/components/weibo_list'
import user_list from '@/components/user_list'
import day_cloud from '@/components/day_cloud'
import week_cloud from '@/components/week_cloud'
import start from '@/components/start'
import ping from '@/components/ping'
import influence from '@/components/influence'
import attention from '@/components/attention'
import active from '@/components/active'
import reply from '@/components/reply'
import forward from '@/components/forward'
import home1 from '@/components/home1'


Vue.use(Router)



export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/ping',
      name: 'ping',
      component: ping
    },
    {
      path: '/home',
      name: 'home',
      component: home,
      children:[
        {path:'/home1',name:'home1',component:home1},
        {path:'/weibo_list',name:'weibo_list',component:weibo_list},
        {path:'/user_list',name:'user_list',component:user_list},
        {path:'/day_cloud',name:'day_cloud',component:day_cloud},
        {path:'/week_cloud',name:'week_cloud',component:week_cloud},
        {path:'/start',name:'start',component:start},
        {path:'/influence',name:'influence',component:influence},  
        {path:'/attention',name:'attention',component:attention},  
        {path:'/active',name:'active',component:active}, 
        {path:'/reply',name:'reply',component:reply},
        {path:'/forward',name:'forward',component:forward}
      ]
    },
    {
      path: '/register',
      name: 'register',
      component: register
    }
  ],
  // mode: 'history',
})
